<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ include file="../include/base.jsp" %>

								<table class="tables" style="display:none">
							    	<c:forEach items="${contactList }" var="contact">
							    		<tr>
											<td class="checkbox">
												<c:if test="${contact.user.id == cur_user.id }">
													<input type="checkbox" name="contact" class="check" value="${contact.id }"/>
												</c:if>
											</td>
											<td class="avatar">
												<img alt="" src="<%=basePath %>img/people.png">
											</td>
								    		<td class="party">
								    			<h5 >
								    				<a href="<%=basePath%>contact/showContact.action?id=${contact.id}">
								    						${contact.name }
								    				</a>
								    			</h5>
								    			
								    			<div class="createby">
									    			${contact.position }
									    			<c:if test="${contact.company != null}">
									    				at
										    			<a href="cid">
										    				${contact.company }	
										    			</a>
									    			
									    			</c:if>
									    			
									    			<div>
									    				<c:forEach items="${contact.emaillist }" var="email">
									    					<c:if test="${email.type == '工作' }">
									    						${email.name}
									    					</c:if>
									    				</c:forEach>
									    				<c:forEach items="${contact.phonelist }" var="phone">
									    					<c:if test="${phone.type == '工作' }">
									    						&nbsp;&nbsp;${phone.name}
									    					</c:if>
									    				</c:forEach>
									    			</div>
									    			<div>
									    				<c:forEach items="${contact.tagList }" var="tag">
									    					<a href="#" class="tag">${tag.name }</a>
									    				</c:forEach>
									    				
									    			</div>
									    			
									    			<div>--by ${contact.user.username}</div>
									    			
								    			</div>
								    			
								    		</td>
								    	</tr>
							    	
							    	</c:forEach>

								</table>
